Mosaizer Pro 12 - Help

Grayscale mosaics

Greyscale mosaics

With version 9.2 a dedicated 'colour' matching engine is made available to create greyscale mosaics. This engine evenly distributes all the greyscale library pictures over the greyscale source picture. This greyscale matching approach forces to use all the library pictures with almost the same frequency. This is in contrast to the engine 'Force to use all pictures' . With that engine the mosaic integrity still prevails over the library picture frequency and distribution in the mosaic.

Black and white analysis
This greyscale engine is supported by a simple but important visual analysis tool. This tool can be found via 'Special functions' and then 'B/W white analysis' in the menu. The picture below shows the pop-up windows with a visual representation of the source and library pictures data. This analysis tool will only be shown when the tile matching method 'Black and white optimized' is selected first!

The analysis shows the following information:

  • Source colours: the top histogram (in greenish colours) shows the grey-distribution of the source picture. Each (grey) pixel from the source picture is counted and put in this graph. The greyscale-bar on the bottom shows the corresponding greyscale bins. From this example it shows that the source picture has a peak of shadows (= almost black) compared with the greys and the library almost have no highlights available (= almost white).
  • Library colours: the bottom histogram (in bluish colours) is a similar graph as the source, but here each pixel represents one picture of the library. For example if 1102 pictures are available in the library this histogram counts all the average grey 'colour' of each of the 1102 pictures and puts them in this histogram. In this example the majority of greys are pretty well distributed, where almost no deep shadows (black) and highlights (white) are available.
  • Show true ratio of source and library: the two histograms are independently scaled to match with the available space in this analysis tool. For example: when the source picture has 44 x 33 cells (= 1452 pixels for the histogram) and the library has only 754 pictures the scale of the library appears almost twice too high than in reality. When this option is checked the true histogram scales are shown (see also example picture below).
  • Grey quality: in most cases there will be no perfect match of source and library histograms. So the final matching of the source and library greys usually result in a certain deviation from the ideal situation. This quality value reflects the average distance from the ideal situation. For example: there is a clear lack of black pictures in the library, so the greyscale engine is forced to use less black pictures from the library instead. This will create a certain greyscale deviation from the ideal. A quality of 96% means that on average 4% deviation is found = 0.04 x 256 (greyscale values) = 10 points. In general 4 points is acceptable, but 10 points is clearly visible (see example below) and correction is need e.g. by colourizing and source blending.
  • Auto colourize: this option automatically counters the effect of non-optimal fit of the selected greyscale library picture by applying a colourize effect for each individual tile. This is contrast of the general 'Colourize' op[tion (as we have available in the tab 'Colours' ). The amount of colourize is set by the value of the 'Quality' slider (in the 'Quality' tab). When this option is checked the 'Colourize' in the 'Colours' tab is not applied. To apply a general colourization in post-processing will however still work correctly.
  • The source picture miniature in the analysis window shows which greys are used for the final mosaic. Although it looks pretty good, it can deviate from the original quite severely. But it gives a pretty good first impression to decide if the library is capable to deliver the correct grey pictures. In this example it clearly shows the absence of shadows and highlights.

Show true ratio of source and library

The example below shows the individually scaled histograms of source and library (left) and the real ratio between source and library histogram (right). Each value of the histogram is calculated from the amount of grey points (pixels, pictures). In case the source picture has significantly more pixels than the available amount of library pixels (= one pixel for each picture) the histogram scales will differ.


Left : independently normalized values of both histograms. Right: uniformly normalized histograms.

When the mosaic is calculated with the available amount library pictures it will determine first how many times a library pictures must be reused. In the example above each library picture will be used appr. 8 times (evenly distributed). The more balanced the library and the source amounts the less repeats are required. A repeat of 4-8 is well acceptable because in a greyscale mosaic with several thousands of pictures the repeats will be very hard to find.

Grey quality

The example below shows the difference between the two engines 'Optimized distribution' and 'Black and white optimized' .


From left to right: Optimized distribution , Black and white optimized and Black and white optimized + 60% blend .

There is a striking (and disappointing?) difference between the left and middle picture. Because the greyscale engine will evenly use every library picture, so the source matching integrity will be sacrificed. The result is a not very good looking mosaic, and colourizing and blending is the only way to compensate for this. Since we are dealing with black and white (greyscale) pictures we can blend to pretty high values without the impression of 'cheating'. With colours a blend of 50% will absolutely show the 'cheat' to create a good match. Use the 'Colourize' with care while unchecking the option 'Keep luminance'. It's no use to apply the option 'Colourize' with the 'Keep luminance' checked because that principle of changing the colour doesn't work in black and white pictures!

Another reason to generously use the 'Blend' option (in combination with 'Colourize' ) is because the result looks usually more realistic ('softer') and resembles the source picture much better. The left picture is pretty 'hard' where the blended result on the right appears more natural, more 'soft'.

Correcting and tuning the mosaic quality

The are two preferred controls available to tune the grey quality and the tile distribution (and avoid multiple adjacent pictures).

  1. the 'Quality' slider in the 'Quality' tab (on the left). This slider sets the amount of 'Auto colourization' . A low value applies just a fraction of the grey-scale difference for each individual tile. For high values of quality the result may not be perceived as getting better, but getting worse. For that reason we recommend to use the quality setting with care (and by trial and error to find a real optimum). Since the overall 'Colourize' is switched off when this option is switched on. An additional post-processing step can still lead to a very good mosaic result. Combining both options is probably the best.
  2. the 'Variety' slider in the 'Quality' tab (on the left). This slider sets the amount of randomization of the optmium library greys to avoid adjacent pictures in the mosaic result. It off-sets (switches) two adjacent grey pixels while maintaining the overall integrity of the mosaic. The higher the variation the more randomization is applied, and the more off-set from the ideal is expected. With increasing variety the grey quality will decrease.

From left to right: Variety value of 3, 4, 5 and 6.

Number of library picture repeats

In the 'Grey quality' example above the details of repeats is not very visible. Even when 'Optimized distribution' is selected, a frequent use of the same library picture is usually still found. Especially areas with little colour variation are notorious in reusing the same picture frequently. The example below shows a clear difference between the two approaches. Left: Optimized distribution , Right: Black and white optimized. Take a close look at the darker areas for comparison: here you find several repeats of the same tile (left) where on the right no repeats are found.


Left: Optimized distribution , Right: Black and white optimized.

How does it work?

The 'Black and white optmized' colour matching engine follows a completely different approach than the 'real colour' matching engines. Whereas the colour engines analyze the full library and source picture, the grey engine mainly analyze the grey values. The big difference is that colour has three components to count for (RGB, HSL or YUV, depending on the colour system that is used) where the grey only has one (Grey). That makes the engine pretty simple, and 100% use and optimized frequency of each tile in the picture library is within reach.

For example: to select the right colour in the RGB colour system requires a possible stunning 255 x 255 x 255 = 16.8 million colours to be taken into account. For grey only 255 colours are used. The calculations are therefore tremendously faster.

We have developed a method where the histogram of the library is matched with the required grey pixels of the source pictures, while maintaining the best overall grey integrity. In other words: the two histograms must have the same shape at the end of this matching algorithm. The histogram tool is an important step in redistributing the library evenly over the source picture. Before blending the greys of the library with the greys of the source picture each library pixel (= tile) is multiplied with the exact factor to perfectly match with the amount of pixels of the source picture. This way the amount of available tiles from the library matches with the required amount of tile for the entire mosaic. Each time a new setting is chosen, e.g. mosaic size, this amount is recalculated.


Copyright © 2006-2016 APP Helmond